/* This module deals with displaying the Opening Screen of the
 * Krishi Suvidha.
 * This is created by : Ambuj Varshney < ambuj_varshney@daiict.ac.in >
 * ID : 200701072 , BTech 2007 , Dhirubhai Ambani Institute of Information and 
 * Communication Technology.
 */

import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Canvas;
import java.io.IOException;
import java.lang.String;
import javax.microedition.midlet.*;
 
 
public class OpeningScreen extends Canvas  {

	// Specifies duration for which opening screen is displayed.
	
	private int duration = 100;
	private String image_name;
	private boolean check = false;
	
	public OpeningScreen()
	{
		setFullScreenMode(true);
		image_name = "/OpeningScreen.png";
	}
	public void keypressed(int keycode)
	{
		if( keycode == KEY_NUM6 )
		{
			check = true;
		}
	}
	public void paint(Graphics g)
	{
 
		Image img;
		try {
		
			img = Image.createImage(image_name);
 	 		g.drawImage(img,0,0,g.TOP| g.LEFT);
 	 		 
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
 	}
	
 
	
}
